package com.test.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@Controller
@RestController
public class AjaxController {
    @RequestMapping("a1")
    public void a1(String name, HttpServletResponse response) throws IOException {
        response.getWriter().print("6666");
    }
}
